import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TaskModule } from './task/task.module';
import { TaskService } from './task/task.services';
import { PrismaService } from './database/prisma.service';
import { UserService } from './user/user.services';
import { UserModule } from './user/user.module';
import { PlatformModule } from './platform/platform.module';
import { PlatformService } from './platform/platform.services';
import { TaskController } from './task/task.controller';
import { PlatformController } from './platform/platform.controller';
import { UserController } from './user/user.controller';
import { CookiesController } from './cookie/cookie.controller';
import { CookiesModule } from './cookie/cookie.module';
import { CookiesService } from './cookie/cookie.services';
import { GoodsModule } from './goods/goods.module';
import { GoodsController } from './goods/goods.controller';
import { GoodsService } from './goods/goods.services';

@Module({
  imports: [TaskModule, UserModule, PlatformModule, CookiesModule, GoodsModule],
  controllers: [
    AppController,
    UserController,
    TaskController,
    PlatformController,
    CookiesController,
    GoodsController,
  ],
  providers: [
    AppService,
    TaskService,
    UserService,
    PrismaService,
    PlatformService,
    CookiesService,
    GoodsService,
  ],
})
export class AppModule {}
